package cn.tedu.charging.device.warm;

import cn.tedu.charging.device.service.DeviceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StationWarmUp implements ApplicationRunner {
    @Autowired
    private DeviceService deviceService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.debug("缓存场站数据预热开始执行");
        deviceService.startOnceWarmUp();
    }
}
